package win.smartown.aqst.demo.net;

import java.util.List;

import io.reactivex.Observable;
import retrofit2.http.GET;
import retrofit2.http.Query;
import win.smartown.aqst.demo.entity.Province;
import win.smartown.aqst.demo.entity.Response;
import win.smartown.aqst.request.RequestManager;

/**
 * @author 雷小武
 * 创建时间：2018/11/6 14:16
 * 版权：成都智慧一生约科技有限公司
 * 类描述：
 */
public class ApiService {

    public static WeatherService getWeatherService() {
        return RequestManager.getRetrofit().create(WeatherService.class);
    }

    public interface WeatherService {

        @GET("historyWeather/province")
        Observable<Response<List<Province>>> getProvince(@Query("key") String key);

    }

}
